cmake_minimum_required(VERSION 3.19)

project(aipro-spi-recv-image-host)

find_package(OpenCV REQUIRED)

add_executable(${PROJECT_NAME} 
    main.cpp
    wiringPiSPIFix.h wiringPiSPIFix.c     
)

target_include_directories(${PROJECT_NAME}
    PRIVATE
        ${OpenCV_INCLUDE_DIRS}
)

# runtime: libwiringPi.so
# debug: libwiringPiDev.so
target_link_libraries(${PROJECT_NAME}
    /usr/local/lib/libwiringPi.so
    /usr/local/lib/libwiringPiDev.so
    ${OpenCV_LIBS}
)